<template><h1>这是异步组件</h1></template>

<script setup>
const res = await new Promise((resolve) => {
  setTimeout(() => {
    resolve(true);
  }, 2000);
});
</script>
<style scoped lang="scss"></style>
